package de.hsowl.tod4a.global.logging;

/**
 * Basic logger creator. Provides different logger for android and desktop java.
 * 
 * @author Sebastian Witt
 * 
 */
public abstract class LoggingFactory {

	/**
	 * Create a new platform specific logger.
	 * @param clazz
	 * @return
	 */
	public static Log getLogger(Class<?> clazz) {
		if (System.getProperty("java.vm.name").equalsIgnoreCase("Dalvik")) {
			return new AndroidLogImpl(clazz);
		} else {
			return new JavaLogImpl(clazz);
		}
	}
}
